package com.cuit.house.controller;

import com.cuit.house.common.ResultMsg;
import com.cuit.house.model.User;
import com.google.common.base.Objects;
import org.apache.commons.lang3.StringUtils;

public class UserHelper {
	
	public static ResultMsg validate(User accout) {
		if (StringUtils.isBlank(accout.getPhonenumber())) {
			return ResultMsg.errorMsg("输入正确手机号");
		}
		if (accout.getPassword().length() < 6) {
			return ResultMsg.errorMsg("输入有效密码");
		}
		return ResultMsg.successMsg("");
	}
}
